#include <iostream>
#include <fstream>
#include <sstream>

using namespace std;

int main(int argc, char *argv[])
{
	if (argc != 3)
	{
		cout << "Parameter Input err!" << endl;
		return -1;
	}
	int fileLength = 0;
	stringstream ss(argv[2]);
	ss >> fileLength;
	ofstream outfile(argv[1], ios::out | ios::trunc);
	if (!outfile.is_open())
	{
		cout << "File open failed!!!" << endl;
		return -1;
	}
	char *buffer = new char[fileLength];
	memset(buffer, 0x00, fileLength);
	for (int index = 0; index < fileLength; index++)
	{
		outfile << buffer[index];
	}
	outfile.close();
	delete buffer;
	return 0;
}
